<!--{include(pe_tpl('header.html'));}-->
<div class="right_page">
	<!--{include(pe_tpl('setting_menu.html'));}-->
	<form method="post" id="form" autocomplete="off">
	<div class="right_main">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="wenzhang mat20">
		<tr>
			<td align="right" width="200">上传位置：</td>
			<td>
				<!--{foreach($ini['upload_server'] as $k=>$v):}-->
				<label class="mar30"><input type="radio" name="upload_server" value="{$k}" class="inputfix" <!--{if($k==$info['upload_server']['setting_value']):}-->checked="checked"<!--{endif;}--> /> {$v}</label>
				<!--{endforeach;}-->
			</td>
		</tr>
		<tbody class="js_block aliyun_block">
		<tr>
			<td align="right">绑定域名：</td>
			<td><input type="text" name="upload_aliyun_domain" value="{$info['upload_aliyun_domain']['setting_value']}" class="inputall input300" /></td>
		</tr>
		<tr>
			<td align="right">AccessKey ID：</td>
			<td><input type="text" name="upload_aliyun_accesskey_id" value="{$info['upload_aliyun_accesskey_id']['setting_value']}" class="inputall input300" /></td>
		</tr>
		<tr>
			<td align="right">AccessKey Secret：</td>
			<td><input type="text" name="upload_aliyun_accesskey_secret" value="{$info['upload_aliyun_accesskey_secret']['setting_value']}" class="inputall input300" /></td>
		</tr>
		</tbody>
		</table>
	</div>
	<div class="right_bottom center">
		<input type="hidden" name="pe_token" value="{$pe_token}" />
		<input type="hidden" name="pesubmit" value="{$pe_token}" />
		<input type="button" value="提 交" class="tjbtn">
	</div>
	</form>
</div>
<link rel="stylesheet" href="{$pe['host']}include/plugin/layui/css/layui.css">
<script src="{$pe['host']}include/plugin/layui/layui.js"></script>
<script type="text/javascript">
$(function(){
	server_change();
	$(":input[name='upload_server']").click(function(){
		server_change();	
	})
	$(":button").click(function(){
		pe_submit("{pe_nowurl()}", function(json){
			if (json.code == 1) pe_open('reload', 1000);
		});
	})
})
function server_change() {
	$(".js_block").hide();
	var server = $(":input[name='upload_server']:checked").val();
	$("."+server+"_block").show();
}
layui.use(['form'], function(){
	form = layui.form;
});
</script>
<!--{include(pe_tpl('footer.html'));}-->